package singleton;

/**
 * 单例模式-饿汉模式
 *
 *  特点： 先实例化对象
 *        私有构造
 *        公共静态方法
 */
public class Wife {

    private static Wife wife = new Wife();

    private Wife() {

    }

    public static Wife getInstance(){
        return wife;
    }
}
